Pseudo cache memory in a multi-core processor (mcp)

ABSTRACT

Specifically, under the present invention, a cache memory unit can be designated as a pseudo cache memory unit for another cache memory unit within a common hierarchal level. For example, in case of cache miss at cache memory unit “X” on cache level L2 of a hierarchy, a request is sent to a cache memory unit on cache level L3 (external), as well as one or more other cache memory units on cache level L2. The L2 level cache memory units return search results as a hit or a miss. They typically do not search L3 nor write back with the L3 result even (e.g., if it the result is a miss). To this extent, only the immediate origin of the request is written back with L3 results, if all L2s miss. As such, the other L2 level cache memory units serve the original L2 cache memory unit as pseudo caches

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is related in some aspects to commonly owned and co-pending docket no. END920080412US1, entitled “Charge Transfer for Digital Circuits,” filed Nov. 21, 2008, the entire contents of which are herein incorporated by reference. This application is also related in some aspects to commonly owned and co-pending docket no. END920080396US1, entitled “Mounted Cache Memory in a Multi-Core Processor (MCP),” filed Nov. 21, 2008, the entire contents of which are herein incorporated by reference. This application is also related in some aspects to commonly owned and co-pending docket no. END920080397US1, entitled “Cache Memory Sharing in a Multi-Core Processor (MCP),” filed Nov. 21, 2008, the entire contents of which are herein incorporated by reference. This application is also related in some aspects to commonly owned and co-pending docket no. END920080399US1, entitled “Cache Memory Bypass in a Multi-Core Processor (MCP),” filed Nov. 21, 2008, the entire contents of which are herein incorporated by reference.

FIELD OF THE INVENTION

The preset invention generally relates to multi-core processors (MCP). Specifically, the present invention relates to the designation of pseudo cache memory units a MCP.

BACKGROUND OF THE INVENTION

Multi-Core Processor (MCP) with hierarchical architecture is a trend for state-of-the-art digital system. Typically, MCPs are implemented with aggressively scaled nanometer CMOS technologies to have high device density and multi-core design. On the other hand, yield failure is caused by the process variability and defects in nanometer CMOS manufacturing. With the hierarchical architecture, a partial failure causes extensive damage to the components in the tree hierarchy and architecture. Therefore, system design and operation methods to salvage operational component blocks are essential to improve product yield as well as to increase the reliability.

SUMMARY OF THE INVENTION

This invention describes an apparatus, computer architecture, memory structure, memory control, and cache memory operation method for multi-core processor. Specifically, under the present invention, a cache memory unit can be designated as a pseudo cache memory unit for another cache memory unit within a common hierarchal level. For example, in case of cache miss at cache memory unit “X” on cache level L2 of a hierarchy, a request is sent to a cache memory unit on cache level L3 (external), as well as one or more other cache memory units on cache level L2. The L2 level cache memory units return search results as a hit or a miss. They typically do not search L3 nor write back with the L3 result even (e.g., if it the result is a miss). To this extent, only the immediate origin of the request is written back with L3 results, if all L2s miss. As such, the other L2 level cache memory units serve the original L2 cache memory unit as pseudo caches. This functionality is enabled by cache manager that wraps the L2 cache inputs and outputs. The method improves on-chip cache hit rate, cache memory efficiency, and computation performance.

A first aspect of the present invention provides a pseudo memory system, comprising: a first memory unit mounted on a bus; a first manager coupled to the first memory unit; and a second memory unit mounted on the bus, the second memory unit being on a common hierarchical level with the first memory unit, and the first cache manager being configured to receive a request, send the request to the second memory unit, and to designate the second memory unit as a pseudo memory unit for the first memory unit.

A second aspect of the present invention provides a pseudo memory system, comprising: a pseudo cache memory system, comprising: a first cache memory unit coupled to a bus; a first cache manager coupled to an input and an output of the first cache memory unit; a first set of sub-cache memory units coupled to the first cache manager; a second cache memory unit coupled to the bus, the second cache memory unit being in a common hierarchical level with the first cache memory unit; a second cache manager coupled to an input and an output of the second cache memory unit; and a second set of sub-cache memory units coupled to the second cache manager, the first cache manager being operable to: receive a request, designate the second cache memory unit as a pseudo cache memory unit of the first cache memory unit, and send the request to the pseudo cache memory unit.

A first aspect of the present invention provides a pseudo memory system, comprising: a pseudo cache memory method, comprising: receiving a request on a first cache manager, the first cache manager being coupled to a first cache memory unit, the first cache memory unit being coupled to a bus; designating a second cache memory unit as a pseudo cache memory unit of the first cache memory unit, the second cache memory unit also being coupled to the bus; and sending the request to the pseudo cache memory unit.

BRIEF DESCRIPTION OF THE DRAWINGS

These and other features of this invention will be more readily understood from the following detailed description of the various aspects of the invention taken in conjunction with the accompanying drawings in which:

FIG. 1 depicts the comparison of a pseudo cache memory system according to the present invention.

FIGS. 2-3 depicts a progression of events involved with processing requests using the pseudo cache memory system of FIG. 1 according to one example of the present invention.

It should be understood that the drawings are not necessarily to scale. The drawings are merely schematic representations, not intended to portray specific parameters of the invention. The drawings are intended to depict only typical embodiments of the invention, and therefore should not be considered as limiting the scope of the invention. In the drawings, like numbering represents like elements.

DETAILED DESCRIPTION OF THE INVENTION

For convenience, the Detailed Description of the Invention has the following sections:

I. General Description

II. Illustrative Example

I. GENERAL DESCRIPTION

As indicated above, this invention describes an apparatus, computer architecture, memory structure, memory control, and cache memory operation method for multi-core processor. Specifically, under the present invention, a cache memory unit can be designated as a pseudo cache memory unit for another cache memory unit within a common hierarchal level. For example, in case of cache miss at cache memory unit “X” on cache level L2 of a hierarchy, a request is sent to a cache memory unit on cache level L3 (external), as well as one or more other cache memory units on cache level L2. The L2 level cache memory units return search results as a hit or a miss. They typically do not search L3 nor write back with the L3 result even (e.g., if it the result is a miss). To this extent, only the immediate origin of the request is written back with L3 results, if all L2s miss. As such, the other L2 level cache memory units serve the original L2 cache memory unit as pseudo caches. This functionality is enabled by cache manager that wraps the L2 cache inputs and outputs. The method improves on-chip cache hit rate, cache memory efficiency, and computation performance.

It should be understood in advance the teachings herein are typically applied to a Multi-Core Processor (MCP), although this need not be the case. In addition, it should be understood although this disclosure discusses memory units as being (virtual) cache or sub-cache memory units, this is only one example of the way in which in the teachings recited herein could be implemented. As such, it should be understood that these teachings could be implemented in conjunction with any type of memory now known or later developed.

State-of-the-art digital systems employ a multi-core processor architecture. They are arranged hierarchically for efficient operation and computation management and design scalability. Since they assume that all the components in the hierarchy are sound, one slight failure would cause catastrophic failure of the remaining components in the tree architecture. The present invention addresses the case where a memory block is intact, but the logic components are damaged in the course of manufacturing, aging, and other reasons. In conventional designs, all the components in the hierarchy and tree are abandoned, which it results in very expensive losses in MCP products. The invention proposes to reuse the operational memory block, by mounting the memory to other functional blocks, such as digital logic core or other memory block. Moreover, the reuse of mounted cache memory units improves chip performance and resilience to manufacturing defects. The method can be applied to many different levels of on-chip cache memory.

The cache memory units store data based on an address index and tag. When the logic core requires a certain data set at a memory address, it sends a request to the 1st-level cache memory unit (e.g., L1 cache) to see if it has the content. If the L1 cache memory unit misses, the logic core postpones the execution of the current instruction, to wait for the data. So cache unit misses pose a significant penalty on the microprocessor performance. On the L1 cache memory unit miss, the next level cache (L2) is asked for the content, and so on. The cache response time increases exponentially as it moves along the cache levels. If the request result comes back as a hit, then the cache memory unit will write the new content to itself, and return the data to logic core (in case of L1), or lower level cache memory units (L1 for L2, L2 for L3). Due to the exponentially increasing time penalty with cache misses, cache design (size and algorithm) becomes critical for high-performance MCP design.

With the MCP architecture, there are multiple logic cores, and cache memory units at the same level to support the assigned logic core. As indicated above, a cache memory unit miss causes a next level cache search request to be generated. It used as a strategy when there are small numbers of cores and cache memory units. In a MCP, although though a cache misses a request, there are multiple same level cache memory units that might have the requested contents. Moreover, the same level cache memory units' response time is usually much faster than the next level cache. For example, if a L2 cache memory unit misses a request, the other L2 cache memory units in the chip can respond much faster than an L3 cache memory unit outside the chip. Considering external L3 cache memory unit contents are based L2s in the chip, there is a good probability that other L2s might have the requested content if L3 has the content.

Thus, the invention proposes a pseudo cache in MCP. Under this approach, cache memory units sharing a common hierarchical level with another cache memory unit are eligible to become pseudo cache memory units of the request originating cache memory unit. Pseudo cache memory units (L2s, e.g.) respond much faster than a cache memory unit outside of the hierarchical level (e.g., L3) for either a hit or miss. In case of a hit, the originating cache memory unit writes back the hit result, ignoring the L3 return. If all pseudo caches memory units miss, then the originating cache memory unit just waits for the L3 cache memory results. All other pseudo cache memory units participate in the search and hit/miss, but they do not write back in the case of a miss (which is part of what makes them pseudo cache memory units). The pseudo cache memory units improves cache hit rate in MCP, and therefore computation performance is improved as much.

Referring now to FIG. 1, a pseudo cache memory system 10 according to the present invention is shown. As depicted, system 10 includes a main controller 12, a bus 14, a set (at least one) of cache memory units 16A-N coupled to bus 14, a set (at least one) of sub-cache memory units 20A-N coupled to set of cache memory units 16A-N, and a set (at least one) of sub-processing elements 22A-N coupled to sub-cache memory units 20A-N. Also shown in FIG. 1 is a set of cache managers 18A-N. As depicted, each cache manager 18A-N is coupled to an input 24A-N and an output 26A-N of a cache memory unit 16A-N.

Cache managers 18A-N foster communication among the components of FIG. 1. By using cache managers both cache memory units 16A-N can be isolated from logic cores. In the of cache memory unit 16A, failing memory is isolated. In cache memory unit 16N, memory can be shared among different logic cores with the cache manager. One type of such communication is memory requests. This can be especially useful when one memory unit “misses” or fails to satisfy the request, another memory unit (vertically within the hierarchy or adjacent) can be so requested. The cache memory mounting operation is done by finding dead logic and live memory in the MCP. Any live memory block with dead logic core can be dedicated to another memory or logic core, as a cache or a memory buffer. It does not have to be one-to-one relationship. A main controller at the top hierarchy manages mounting process, by performing diagnosis on memories and cores. Cache manager receives (1) normal cache, (2) mounting or (3) being mounted instructions from the main controller. Main controller 12 communicates with cache managers 18A-N through bus 14.

Thus, a cache manager acts as a wrapper around the cache memory unit and enables the proposed cache operation. Specifically, the cache managers configure the relationship with other cache memory units at the same level in the hierarchy. It should be understood, however, that not all same-level caches have to be pseudo cache of the origin cache. In the event of a miss at a cache level (e.g., L2), the cache manager sends out a L3 search request. The same request is also duplicated to pseudo cache memory units that reside on the same hierarchal level as the cache memory unit that originally received the request. The cache manager at the pseudo cache memory unit differentiates pseudo cache operation from normal cache operation. As such, the search, hit, and miss are same, but the results are returned to the origin cache. Also even if the search is a miss, pseudo operation does not search further to L3. That is, only the originating L2 cache memory unit maintains L3 communication for original cache request.

II. ILLUSTRATIVE EXAMPLE

FIGS. 2 and 3 show a progression of events for such an example. In step 1, cache memory unit 16A receives cache request from sub-cache memory unit 20A. In step 2, cache memory unit 16A its results to sub-cache memory unit 20A (hit or miss). In steps 3 and 4, in case of a miss b y cache memory unit 16A, a pseudo cache request is sent to cache memory unit 16N and to an additional request is sent to L3 cache memory unit (not shown). The pseudo cache memory unit request causes cache memory unit 16N to be designated as a pseudo cache memory unit of cache memory unit 16A. In step 5, the pseudo cache request is managed differently from a normal cache request by cache manager 18N. Specifically, the pseudo cache memory request is queued for a search on cache memory unit 16N. In step, (pseudo) cache memory unit 16N returns its results (hit/miss). Since it is functioning as a pseudo cache memory unit, cache memory unit 16N performs no further operations (next level search and write back, etc.) even if it is a miss. In the final step, cache memory unit 16A arranges a pseudo cache result and a L3 result. If there is a hit in the pseudo cache memory unit results, the L3 result is ignored. If there is no hit from the pseudo cache memory unit, cache memory unit 16A waits for L3 results to perform normal cache operations (hit/miss/write back).

The foregoing description of various aspects of the invention has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed, and obviously, many modifications and variations are possible. Such modifications and variations that may be apparent to a person skilled in the art are intended to be included within the scope of the invention as defined by the accompanying claims. 

1. A pseudo memory system, comprising: a first memory unit mounted on a bus; a first manager coupled to the first memory unit; and a second memory unit mounted on the bus, the second memory unit being on a common hierarchical level with the first memory unit, and the first cache manager being configured to receive a request, send the request to the second memory unit, and to designate the second memory unit as a pseudo memory unit for the first memory unit.
 2. The pseudo memory system of claim 1, the first memory unit and the second memory unit comprising virtualized cache memory units, and the first manager being a cache manager.
 3. The pseudo memory system of claim 1, further comprising a second manager coupled to the second memory unit, the second manager being operable to receive the request from the first cache manager, send the request to the second memory unit, and configure the second memory unit to act as a pseudo memory unit for the first memory unit.
 4. The pseudo memory system of claim 3, further comprising: a first set of sub-memory units coupled to the first manager; and a first set of sub-processing elements coupled to the first set of sub-memory units.
 5. The pseudo memory system of claim 4, further comprising: a second set of sub-memory units coupled to the second manager; and a second set of sub-processing elements coupled to the second set of sub-memory units.
 6. The pseudo memory system of claim 1, the bus being coupled to a main controller.
 7. The pseudo memory system of claim 1, the first manager being coupled to an input and an output of the first memory unit.
 8. The pseudo memory system of claim 8, the first manager being further coupled to the bus
 9. The pseudo memory system of claim 8, further comprising a third memory unit, the third memory unit also receiving the request from the first memory unit via the first manager.
 10. A pseudo cache memory system, comprising: a first cache memory unit coupled to a bus; a first cache manager coupled to an input and an output of the first cache memory unit; a first set of sub-cache memory units coupled to the first cache manager; a second cache memory unit coupled to the bus, the second cache memory unit being in a common hierarchical level with the first cache memory unit; a second cache manager coupled to an input and an output of the second cache memory unit; and a second set of sub-cache memory units coupled to the second cache manager, the first cache manager being operable to: receive a request, designate the second cache memory unit as a pseudo cache memory unit of the first cache memory unit, and send the request to the pseudo cache memory unit.
 11. The pseudo cache memory system of claim 10, further comprising a first set of sub-processing elements coupled to the first set of sub-cache memory units.
 12. The pseudo cache memory system of claim 10, further comprising a second set of sub-processing elements coupled to the second set of sub-cache memory units.
 13. The pseudo cache memory system of claim 10, the bus being coupled to a main controller.
 14. The pseudo cache memory system of claim 10, the second cache manager being operable to designate another cache memory unit in the common hierarchy as a pseudo cache memory unit of the second cache memory unit.
 15. A pseudo cache memory method, comprising: receiving a request on a first cache manager, the first cache manager being coupled to a first cache memory unit, the first cache memory unit being coupled to a bus; designating a second cache memory unit as a pseudo cache memory unit of the first cache memory unit, the second cache memory unit also being coupled to the bus; and sending the request to the pseudo cache memory unit.
 16. The pseudo cache memory method of claim 15, the second cache memory unit being in a common hierarchical level as the first cache memory unit.
 17. The pseudo cache memory method of claim 15, the request being received from a first set of sub-memory units coupled to the first cache memory unit.
 18. The memory pseudo method of claim 15, further comprising: receiving the request on second cache manager coupled to the pseudo cache memory unit; and processing the result using the pseudo cache memory unit.
 19. The pseudo cache memory method of claim 16, further comprising sending a result of the processing to the first cache memory unit.
 20. The pseudo cache memory method of claim 15, further comprising sending the request to a third cache memory unit coupled to the bus. 